package com.cloudkinto.appletservice.user.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zhangyy
 * @date 2020/10/23 13:07
 * @description:
 */
@Data
public class AppletUserLoginReq {
    @ApiModelProperty(value = "用户账号")
    @NotBlank(message = "请输入账号/手机号")
    private String userAccount;

    @ApiModelProperty(value = "用户密码")
    private String userPassword;

    @ApiModelProperty(value = "用户验证码")
    private String verificationCode;
    @ApiModelProperty(value = "用户openId")
    private String openId;

    @ApiModelProperty(value = "登录方式 type 0验证码 1密码")
    private int type;

    @ApiModelProperty(value="前台后台 type 0前台 1后台")
    private int userRoleType;


    public enum LOGIN_TYPE {
        VER(0), PSD(1);
        private int value;

        LOGIN_TYPE(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }
    }
}
